-- GENERATED SPELL FOR [Crypt Beast] --


function spell0_10413(pUnit, Event) --@Encasing Webs,n/a--
pUnit:FullCastSpellOnTarget(4962,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10413', 8000, 1)
end

function Sorts_10413(pUnit, Event)
local choix_sorts_10413 = math.random(0, 0)
if choix_sorts_10413 == 0 then
pUnit:RegisterEvent('spell0_10413', 1, 1)
end
end

function mob10413_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10413', math.random(1500, 3000), 1)
end

function mob10413_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10413_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10413_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10413, 1, 'mob10413_Action')
RegisterUnitEvent(10413, 2, 'mob10413_Leave')
RegisterUnitEvent(10413, 3, 'mob10413_Kill')
RegisterUnitEvent(10413, 4, 'mob10413_Die')
